package models;

import javax.persistence.*;

import play.data.validation.Required;
import play.db.jpa.Model;

@Entity
public class OrdresPriorite extends Model{
	@Required
	public int ordre;
	
	@Required
	public String nom;
	
	public OrdresPriorite(String nom, int ordre){
		this.nom=nom;
		this.ordre=ordre;
	}
	
	public String toString(){
		return nom;
	}
}
